import axios from "axios"

axios.defaults.baseURL = "/api"

type Iapi = () => Promise<any>

export const getTaskData: Iapi = () => axios.get("/data/tarsk.json")

export const getLearnStepData = () => axios.get("/data/rate.json")